package edu.mit.media.fv.blocks
{
	
	import edu.mit.media.fv.components.*;
	import edu.mit.media.fv.events.*;
	import edu.mit.media.fv.fluidspace.*;
	import edu.mit.media.fv.icons.*;
	
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.text.*;
	
	public class TimelineBlock extends SquareBlock
	{
		
		public function TimelineBlock(model:Model, controller:FluidSpace, tags:String, diameter:int = 50){
			super(model, controller, null, tags, 0xBBADD1);
			this.removeChild(this._label);
			var format:TextFormat = new TextFormat();
			format.align = "center";
			format.bold = true;
			format.font = "Arial";
			format.size = 10;
			this._label = new TextField();
			this._label.defaultTextFormat = format;
			this._label.type = TextFieldType.DYNAMIC;
			this._label.selectable = false;
			this._label.multiline = true;
			this._label.doubleClickEnabled = true;
			this._label.mouseEnabled = true;
			this._label.text = tags;
			this._label.wordWrap = true;
			this.addChild(this._label);
			

		}
		public override function set radius(radius:int):void{
			super.radius = radius;
			this._label.width = radius*2;
			this._label.height = radius*2;
			this._label.x = 0;
			this._label.y = 0;
		}
		public override function startDragging(event:MouseEvent):void{}
		public override function stopDragging(event:MouseEvent):void{
			//AQBlockPopup.show(this.radius, this.radius, this.popupPosition, this, menuItems);
		}
		public override function snapBack():void{}
		public override function selfDestruct():void{}
		public override function moveBlock(newBlockContainer:BlockContainer):void{		}
	}
}